//
//  AppDelegate.h
//  Address-book📞
//
//  Created by Mars_ZXB on 16/8/6.
//  Copyright © 2016年 BAT3. All rights reserved.
//


#import <Foundation/Foundation.h>
@class ModelOfContact;
@interface DataBaseHandleContact : NSObject

/** 构造器 */
+ (instancetype)sharaDateBaseHandleContact;

/** 打开数据库. API:sqlite3_open */
- (void)openSQLName:(NSString *)name;

/** 创建表格. API:sqlite3_exec */
- (void)createTabel;

/** 插入数据. */
- (void)insertModel:(ModelOfContact *)contact WithSection:(NSString *)section;

/** 删除数据. API: sqlite3_exec */
- (void)deleteModel:(ModelOfContact *)contact;

/** 检索全部 */
- (NSArray<ModelOfContact *> *)select;

/** 关闭数据库 API: sqlite3_close */
- (void)closeDB;

@end
